<template>
  <tr>
    <td>合计:</td>
    <td colspan="5">
      {{unmtp}}
    </td>
  </tr>
</template>

<script>

export default {
  data () {
    return {

    }
  },
  props: ['gdlist'],
  computed: {
    unmtp () {
      return this.gdlist.reduce(function (a, b) {
        if (b.checked === true) {
          a += b.price * b.num
        }
        return a
      }, 0)
    }
  },

  methods: {

  }
}
</script>

<style scoped lang='less'>

</style>
